Follow below steps in sequence to setup empty database

1. Connect to an empty database. 

2. Deploy war file. It will execute all the flyway scripts

3. Now take the backup of  following tables (Only data)
	entity_type,
	all table for id generator starting from id_,
	schema_version,
	standard_master,
	standard_master_items.
		
4. After Backup, Truncate all the tables - 
	select Concat('TRUNCATE TABLE ',table_schema,'.',TABLE_NAME, ';')
	from information_schema.tables  where table_schema='testing_blank_db_23jan'
	and table_type <> 'VIEW';
	--> Remove the view names from the truncate statement 
	
5. Open Database Instance and execute the CB Seed Data Script.(CB Seed Data.sql)

6. Next execute the CB related XML.(DataConfigurerApp)

7. Execute Application Seed Data Script

8. Next execute QuartzJobSeedData.sql

9. Execute the backup scripts from step 3

10. Execute Messaging Seed working.

11. Execute Dynamic Document see data (for offer letter)

12. Execute jasper seed data

13. Execute DFR Inserts ( dynamic form rendering)

14. Revert XML Parser folder from SVN.

15. Run ID Configurator - SearchResultViewConfigurationApp as java file.

16. Truncate module and menu tables

17. Execute System Module XML.

18. Execute System Menu XML.

19. Execute Portal Inserts

<<Confirm Need To Be Verified is also executed>>
<<Confirm with your client before running ClientDependentSeedData.sql>>

=================== How to setup email in Ubuntu
Problem :- email (through amazon)  is not sending from Ubuntu system.
Solution :- You need to change hostname in system, following are the steps
1) open terminal
2) sudo su
3) gedit /etc/hosts
and change localhost to any name
127.0.0.1    Utsav

save and close it.

4) use command 
gedit /etc/hostname
and put system or your name and save it.

Now host name is set and messaging will work.

